﻿@model CongressVote.Models.Users

@{
    ViewBag.Title = "Login";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<h2>Login</h2>

        <div id="login">
            @using(@Html.BeginForm()){
                @Html.ValidationSummary(true,"login faild")
                    <fieldset>
                        <legend></legend>
                <div class="spanlogin">
                    
                        <span>@Html.LabelFor(m=>m.userName)</span>
                        <span>@Html.TextBoxFor(m=>m.userName)</span>
                   
                </div>
                
                <div class="spanlogin">
                   
                        <span>@Html.LabelFor(m=>m.userPassword)</span>
                        <span>@Html.PasswordFor(m=>m.userPassword)</span>
                    
                </div>
                    </fieldset>
                <div class="spanlogin span1"><span><input type="submit" value="Login"/></span></div>
            }
            
        </div>

